#ifndef MKPIEWIDGET_H
#define MKPIEWIDGET_H

#include "mktablemodel.h"

#include <QWidget>
#include <QMap>


class MKPieTypeWidget : public QWidget
{
	Q_OBJECT
public:
	MKPieTypeWidget(QMap<quint8, quint32> costs, QWidget *parent = 0);

protected:
	void paintEvent(QPaintEvent *event);

private:
	QMap<quint8, quint32> mPieParts;
	quint32 totalValue;
};


class MKPieCategoryWidget : public QWidget
{
	Q_OBJECT
public:
	MKPieCategoryWidget(QMap<quint8, QMap<quint8, quint32> > costs, QWidget *parent = 0);

protected:
	void paintEvent(QPaintEvent *event);

private:
	QMap<quint8, QMap<quint8, quint32> > mPieParts;
	quint32 totalValue;
};

#endif // MKPIEWIDGET_H
